package kr.hkit.powerjava.chapter24.work3;

import java.io.Serializable;

public class Department implements Serializable ,Comparable<> {
	private int Num;
	private String Name;
	private int floor;
	public Department(int num, String name, int floor) {
		Num = num;
		Name = name;
		this.floor = floor;
	}
	
	public int getNum() {
		return Num;
	}
	public void setNum(int num) {
		Num = num;
	}
	public String getName() {
		return Name;
	}
	public void setName(String name) {
		Name = name;
	}
	public int getFloor() {
		return floor;
	}
	public void setFloor(int floor) {
		this.floor = floor;
	}
	@Override
	public String toString() {
		return String.format("%3s\t %5s\t %3s\t", Num,Name, floor);
	}
}
